// 手机端适配
(function (doc, win, designWidth) {
    var html = doc.documentElement;

    function refreshRem() {
        var clientWidth = html.getBoundingClientRect().width; //取宽度
        if (clientWidth >= designWidth) {
            html.style.fontSize = "100px";
        } else {
            html.style.fontSize = 100 * (clientWidth / designWidth) + "px";
        }
    }
    doc.addEventListener("DOMContentLoaded", refreshRem);
})(document, window, 1920);
